<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title></title>
    <link href="../../common/reset.css">
    <style>
        @keyframes bear {
            from {
                background-position: -296px 0;
            }
            to {
                background-position: -892px 0;
            }
        }
        
        @keyframes move {
            0% {
                transform: rotate(90deg) translate(0, 0);
            }
            25% {
                transform: translate(500px, 0) rotate(100deg);
            }
            26% {
                transform: translate(500px, 0) rotate(150deg);
            }
            50% {
                transform: translate(500px, 400px) rotate(180deg);
            }
            51% {
                transform: translate(500px, 400px) rotate(270deg);
            }
            75% {
                transform: translate(300px, 400px) rotate(270deg);
            }
            100% {
                transform: translate(0, 0) rotate(360deg);
            }
        }
        
        .box {
            margin: 30px auto;
            width: 149px;
            height: 249px;
            background-color: aqua;
            background: url(./21-1.jpeg) no-repeat;
            animation: bear .5s steps(4) infinite, move 3s linear;
            background-position: -296px;
            position: absolute;
        }
    </style>
</head>

<body>
    <div class="box"></div>
</body>

</html>